package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 班级专业成绩学期课程表
 * </p>
 *
 * @author yangyongchuan
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClassUserScoreSemester extends Model<ClassUserScoreSemester> {

	private static final long serialVersionUID = 2399094427780201363L;

	/**
	 * 自增ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 归属组织ID
	 */
	private Integer orgId;

	/**
	 * 班级id
	 */
	private Integer classId;

	/**
	 * 学期名称
	 */
	private String semesterName;

	/**
	 * 课程
	 */
	private String subjectName;

	/**
	 * 学分
	 */
	private Integer credit;

	/**
	 * 排序
	 */
	private Integer sortOrder;

	/**
	 * 添加时间
	 */
	private Date createTime;

	/**
	 * 创建人
	 */
	private Integer createAdminId;

	/**
	 * 状态：1=正常 0=删除
	 */
	private Integer status = 1;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
